<style>
    .table th{
        text-align: center;
        vertical-align:middle;
    }
    .table td{
        text-align: center;
        vertical-align:middle;
    }
</style>
<div class="row-fluid listcontent">
    <div class="span12">
        <div class="portlet box grey">
            <div class="portlet-title">
                <div class="caption"><i class="icon-cogs"></i>召集令配置</div>
                <div class="actions" id="orderaline">
                    <div class="btn-group">
                        <a href="/admin/tales/add" class="btn blue" id="add"><i class="icon-pencil"></i>&nbsp;&nbsp;添加</a>
                    </div>
                </div>
            </div>
            <div class="portlet-body">
                <div class="dataTables_wrapper form-inline">
                    <div class="row-fluid">
                        <div class="span12">
                            <form id="searchform" action="{$action}" method="post">
                                <div class="dataTables_filter" id="sample_2_filter" style="float: left">
                                    <label>
                                        <input type="button" class="btn blue searchsubmit" value="召集令:  "/>
                                        <select name='type' style="width: 80px;margin-right: 10px" value="">
                                            <option value="">全部</option>
                                            <option value="2" <?php if (isset($type) && ($type == 2)) { ?>selected="selected"<?php } ?>>铜牌</option>
                                            <option value="3" <?php if (isset($type) && ($type == 3)) { ?>selected="selected"<?php } ?>>银牌</option>
                                            <option value="4" <?php if (isset($type) && ($type == 4)) { ?>selected="selected"<?php } ?>>金牌</option>
                                        </select>
                                    </label>
                                </div>
                                <div class="dataTables_filter" id="sample_2_filter" style="float: left">
                                    <label>
                                        <input type="button" class="btn blue searchsubmit" value="机型:  "/>
                                        <select name='phone' style="width: 80px;margin-right: 10px" value="">
                                            <option value="">全部</option>
                                            <option value="1" <?php if (isset($phone) && ($phone == 1)) { ?>selected="selected"<?php } ?>>苹果</option>
                                            <option value="2" <?php if (isset($phone) && ($phone == 2)) { ?>selected="selected"<?php } ?>>安卓</option>
                                        </select>
                                    </label>
                                </div>
                                <div class="dataTables_filter" id="sample_2_filter" style="float: left;margin-left:10px">
                                    <label>
                                        <input type="button" class="btn blue search" value="提交"/>
                                    </label>
                                </div>
                            </form>
                        </div>
                    </div>
                    <table id="basicinfo" class="table table-hover table-bordered">
                        <thead>
                        <th>ID</th>
                        <th>召集令类型</th>
                        <th>时长</th>
                        <th>价格(¥)</th>
                        <th>机型</th>
                        <th style="width:100px;">操作</th>
                        </thead>
                        <tbody>
                        {if(count($list)>0)}
                        {volist name='list' id='val' k='key'}
                        <tr class="odd gradeX ">
                            <td>{$val.long_id}</td>
                            <td>
                                <?php if($val['long_type'] == 2){?>
                                    <span class="label label-info" style="background:#A87E5E;">铜牌</span>
                                <?php }elseif($val['long_type'] == 3){ ?>
                                    <span class="label label-danger" style="background:#D8D8D8;">银牌</span>
                                <?php }else{ ?>
                                    <span class="label label-danger" style="background:#F1CA13;">金牌</span>
                                <?php } ?>
                            </td>
                            <td>{$val.long_how}</td>
                            <td>{$val.long_money}</td>
                            <td>
                                <?php if($val['long_phone'] == 1){?>
                                    苹果
                                <?php }elseif($val['long_phone'] == 2){ ?>
                                    安卓
                                <?php } ?>
                            </td>
                            <td>
                                <a class="btn mini green edit" style="margin-top:5px" data-id='{$val.long_id}'><span>编辑</span></a>
                                <a class="btn mini red del" style="margin-top:5px" data-id='{$val.long_id}'><span>删除</span></a>
                            </td>
                        </tr>
                        {/volist}
                        {else/}
                        <tr>
                            <td colspan="16"><span style="margin-left: 50px">暂无数据</span></td>
                        </tr>
                        {/if}
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
